% (my/p,lambda)-sigmaSA-ES with intermediate recombination Slide 97, 106
% Michael Sieber, Philipp Rusch

mu = 200
[y, sigma_dyn, fitness_dyn, generations] = slash_comma_sa_es_intermediate(mu, mu, mu*3, 30, 'Rastrigin', 1, 10^-5);
disp("----------");
mu

% print the result
clf();
hold on;
semilogy(generations, sigma_dyn);
ylabel("Sigma");
xlabel("Generations");
%semilogy(generations, fitness_dyn);
%ylabel("Fitness");
%xlabel("Generations");
hold off;
%axis([0, 200, 10^-14, 10]); %[xmin, xmax, ymin, ymax]